<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>jquery 事件</title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function() {
				//$("div#pic img").mouseover(...);
				//$("div").click();
				
				$("div#pic img").bind({
					mouseover: function() {
						$(this).css("border", "10px groove red");
					},
					mouseout: function() {
						$(this).css("border", "none");
					},
				});
			});
		</script>
	</head>
	<body>
		<div id="pic">
			<img src="../images/kongzi.jpg" />
		</div>
	</body>
</html>
